import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import store from "./redux/store";
import {Provider} from "react-redux";

ReactDOM.render(<Provider store={store}><App/></Provider>, document.getElementById('root'));
// 用了react-redux可省略 单用redux需使用
/*store.subscribe(() => {
    ReactDOM.render(<App/>, document.getElementById('root'));
})*/
